﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;
using System.Data;
using BBS.Entity;

namespace BBS.Data
{
   public  class LogTable
    {
        private static string _connstr = ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString;

        private BaseTable _table = new BaseTable(_connstr, "Log");

       public DataTable GetAllFeature()
       {
           return _table.SelectTable(" where type = " + (int) LogType.Feature);
       }
       public DataTable GetAllBug()
       {
           return _table.SelectTable(" where type = " + (int)LogType.Bug);
       }
    }
}
